package com.bgrconsulting.stockorderentry.service.converter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.bgrconsulting.stockorderentry.service.model.action.PlaceEquityOrder;

@XmlRootElement(name = "PlaceEquityOrder")
public class PlaceEquityOrderConverter {
	private PlaceEquityOrder enity;
	
	public PlaceEquityOrderConverter(PlaceEquityOrder placeEquityOrder) {
		enity = placeEquityOrder;
	}
	
	public PlaceEquityOrderConverter() {
		enity = new PlaceEquityOrder();
	}
    
	@XmlElement(name = "EquityOrderRequeest")
	public EquityOrderRequestConverter getEquityOrderRequestConverter() {
		
		EquityOrderRequestConverter eorc = new EquityOrderRequestConverter( enity.getEquityOrderRequest());
		return eorc;
	}
}

